package demo.service;

import demo.entity.SysUser;

import java.util.List;

/**
 * Created by Wenxin on 2017/3/13.
 */
public interface UserService {

    public SysUser login(String username,String password);

    public boolean updatePassword(long id,String newPassword,String oldPasswod);

    public boolean addUser(SysUser sysUser);

    public boolean delete(long id);

    public List<SysUser> queryList(int start, int size);

    public SysUser query(long id);

}
